import { createApp } from 'vue' 
import App from './App.vue'
import './assets/css/index.scss'
import 'vant/es/toast/style'
import 'vant/es/dialog/style'
import 'vant/es/notify/style'
import store from './store'
import router from './router/index'
import plugins from './plugins'  
import { PullRefresh } from 'vant';
import { setupGlobComponent } from "./components";
import {testGlobal,parseTime} from './utils/dhtools'

// 全局方法挂载 

const app = createApp(App)
app.config.globalProperties.testGlobal = testGlobal;
app.config.globalProperties.parseTime = parseTime;
app.use(router)
app.use(store)
app.use(PullRefresh)
app.use(plugins)
app.provide('global', {
    msg: 'Hello World',
    foo: [1,2,3,4]
  })

setupGlobComponent(app)
app.mount('#app')
